package com.ruan.openfeign;

import com.ruan.pojo.Address;
import org.springframework.stereotype.Component;

/**
 * @ClassName:AddressCenterOpenfeignFallBack
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/6/20 15:50
 **/
@Component
public class AddressCenterOpenfeignFallBack implements AddressCenterOpenfeign{
    @Override
    public Address getAddressById(Integer id) {
        Address address = new Address();
        address.setAddressName("默认地址");
        return address;
    }
}
